package day0423;

/**
 * @Author Stringzhua
 * @Date 2024/4/23 13:14
 * description:开灯命令
 */
public class LightOnCommand implements Command {
    private Light light;

    public LightOnCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.turnOn();
    }
}
